<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>验证码邮件</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 20px;
        }
        .email-container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        .email-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px 20px;
            text-align: center;
        }
        .email-header h1 {
            margin: 0;
            font-size: 28px;
            font-weight: 600;
        }
        .email-body {
            padding: 40px 30px;
            text-align: center;
        }
        .verification-code {
            font-size: 48px;
            font-weight: bold;
            color: #667eea;
            letter-spacing: 8px;
            margin: 30px 0;
            padding: 20px;
            background-color: #f8f9ff;
            border-radius: 8px;
            border: 2px dashed #e3e8ff;
        }
        .message {
            color: #666;
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        .warning {
            background-color: #fff3f3;
            border-left: 4px solid #ff4757;
            padding: 15px;
            margin: 25px 0;
            text-align: left;
            border-radius: 4px;
        }
        .warning h3 {
            color: #ff4757;
            margin: 0 0 10px 0;
            font-size: 16px;
        }
        .warning ul {
            margin: 10px 0;
            padding-left: 20px;
        }
        .warning li {
            margin-bottom: 5px;
            font-size: 14px;
        }
        .email-footer {
            background-color: #f8f9fa;
            padding: 20px;
            text-align: center;
            color: #888;
            font-size: 12px;
            border-top: 1px solid #e9ecef;
        }
        .expire-info {
            color: #ff6b6b;
            font-weight: 600;
            font-size: 14px;
            margin-top: 10px;
        }
        @media (max-width: 480px) {
            .verification-code {
                font-size: 36px;
                letter-spacing: 6px;
            }
            .email-body {
                padding: 30px 20px;
            }
        }
    </style>
</head>
<body>
<div class="email-container">
    <!-- 邮件头部 -->
    <div class="email-header">
        <h1>验证码通知</h1>
    </div>

    <!-- 邮件正文 -->
    <div class="email-body">
        <p class="message">您正在执行重要操作，请使用以下验证码完成验证：</p>
        <!-- 验证码显示区域 -->
        <div class="verification-code" th:text="${code}">123456</div>
        <p class="expire-info">⏰ 此验证码5分钟内有效</p>
        <!-- 安全提醒 -->
        <div class="warning">
            <h3>🔒 安全提示</h3>
            <ul>
                <li>请勿将验证码泄露给任何人</li>
                <li>官方人员不会向您索要验证码</li>
                <li>如非本人操作，请立即忽略此邮件</li>
            </ul>
        </div>
    </div>
    <!-- 邮件底部 -->
    <div class="email-footer">
        <p>此为系统自动发送邮件，请勿直接回复</p>
        <p>© 2025 系统平台 · 保障您的账户安全</p>
    </div>
</div>
</body>
</html>